#!/bin/bash

LIMIT="$(date "--date=3 months ago" +%s)"

for filter in customfilters/*; do
	LASTREAD=$(grep '^Last Read' "${filter}" | cut -d : -f 2)
	if [[ $LASTREAD -lt $LIMIT ]]; then
		rm "${filter}"
	fi
done

